CREATE TABLE [finance].[PaymentTxns]
(
[PaymentTxnId] [bigint] NOT NULL IDENTITY(1, 1),
[DateOfPayment] [int] NOT NULL,
[SubSystem] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ModeOfPayment] [int] NOT NULL,
[CustomerId] [bigint] NOT NULL,
[IntiatedBy] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[VoucherNo] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[PaidFor] [nvarchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[PaidDesc] [nvarchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[TxnAmount] [money] NOT NULL,
[PaymentStatusId] [bigint] NOT NULL,
[AddressLine1] [nvarchar] (150) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[AddressLine2] [nvarchar] (150) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[City] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[State] [nvarchar] (2) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Country] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Zip1] [nvarchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Zip2] [nvarchar] (4) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CreatedUser] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CreatedDate] [datetime] NULL,
[UpdatedDate] [datetime] NOT NULL,
[UpdatedUser] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Sourcepkid] [bigint] NULL,
[SourceName] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Invoiceid] [bigint] NULL,
[MasterPaymentTxnId] [bigint] NULL
) ON [PRIMARY]
GO
